package com.zzh.lib.recorder.utils;


import com.zzh.lib.recorder.whole.pickvideo.beans.VideoFile;
import com.zzh.lib.recorder.whole.pickvideo.callback.FileLoaderCallbacks;
import com.zzh.lib.recorder.whole.pickvideo.callback.FilterResultCallback;

import androidx.fragment.app.FragmentActivity;
import androidx.loader.app.LoaderManager;

import static com.zzh.lib.recorder.whole.pickvideo.callback.FileLoaderCallbacks.TYPE_VIDEO;

/**
 * Created by ZZH on 2023/1/30.
 *
 * @date: 2023/1/30 21:02
 * @email: zzh_hz@126.com
 * @author: zzh
 * @description: com.zzh.lib.recorder.utils
 */
public class FileFilter {
    public static void getVideos(FragmentActivity activity, FilterResultCallback<VideoFile> callback){
        LoaderManager.getInstance(activity).initLoader(1, null, new FileLoaderCallbacks(activity, callback, TYPE_VIDEO));
    }
}
